import { Op } from 'sequelize'
import { sequelize } from '../../BaseDao'
import Reply from '@/modules/decormodel/reply';
import { ReplyRaw } from '../util';

class ReplyDao {
  static ReplyDao: ReplyDao = new ReplyDao()
  // 新增回复
  async addReply( reply: ReplyRaw): Promise<[any, any]>  {
    const sql = `insert into reply(replycontent,replydate,evalid,replyor)
    value('${reply.replycontent}','${reply.strReplyDate}','${reply.evalid}',
    '${reply.replyor}')`;
    return await sequelize.query(sql);
  }

}

export default ReplyDao.ReplyDao
